<?php echo $this->Form->create('Station', array('action' => 'edit')); ?>
			
<div class="Formulario">
	<fieldset id="Menu_Detail">

		<b>Detalhamento</b><br><br>

			<?php echo $this->Form->input('Station.id', array('type' => 'hidden')); ?>
			
			<?php echo $this->Form->input('Station.name', array('label' => 'Nome: <br>','required'=>'required', 'id' => 'nome')); ?>
			<?php echo $this->Form->input('Station.acronym',array('label' => 'Sigla: <br>', 'required'=>'required','id' => 'descricao')); ?>
			<?php 
				$hasLine = array();
				foreach ($lines as $line) {
					$k = $line['Line']['id'];
					$v = $line['Line']['name'];
					$hasLine[$k] = $v;
				 	# code...
				 };
				echo $this->Form->input('Station.line_id', array('label'=> 'Linha: <br>', 'required'=>'required', 'options' => $hasLine)); ?>
			<?php echo $this->Form->input('Station.distance', array('label' => 'Distancia: <br>', 'id' => 'image')); ?>
			<?php echo $this->Form->input('Station.latitude', array('label' => 'Latitude: <br>', 'id' => 'image')); ?>
			<?php echo $this->Form->input('Station.longitude', array('label' => 'Longitude: <br>', 'id' => 'image')); ?>
			<?php echo $this->Form->input('Station.time', array('label'=>'Tempo: HH:MM','type' => 'time','timeFormat' => '24'));?>
			<?php 
				$hasParking = array('1' => 'Sim', '0' => 'Não');
				echo $this->Form->input('Station.parking', array('label'=> 'Estacionamento: <br>', 'required'=>'required', 'options' => $hasParking, 'default' => '0')); ?>
			<?php 
				$hasSEI = array('1' => 'Sim', '0' => 'Não');
				echo $this->Form->input('Station.bus', array('label'=> 'Ônibus: <br>', 'required'=>'required', 'options' => $hasSEI, 'default' => '0')); ?>

			<?php echo $this->Form->input('Station.phone', array('label' => 'Telefone: <br>', 'id' => 'preco')); ?>
		</fieldset>
</div>

	
<?php echo $this->Form->end('Salvar Edição'); ?>